package com.smartfast4j.manager.modules.sys.service;


import com.smartfast4j.manager.modules.sys.bean.SysRoleExt;
import com.smartfast4j.pojo.sys.SysRole;
import com.smartfast4j.pojo.sys.SysRoleExample;

import java.util.List;

public interface SysRoleService {
    int countByExample(SysRoleExample example);

    SysRole selectByPrimaryKey(Long id);

    List<SysRole> selectByExample(SysRoleExample example);

    int deleteByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);

    int deleteByExample(SysRoleExample example);

    int updateByExampleSelective(SysRole record, SysRoleExample example);

    int updateByExample(SysRole record, SysRoleExample example);

    int insert(SysRole record);

    int insertSelective(SysRole record);

    int insertBatchSelective(List<SysRole> records);

    int updateBatchByPrimaryKeySelective(List<SysRole> records);

    /**
     * 保存
     * @param role
     */
    void save(SysRoleExt role);

    /**
     * 更新
     * @param role
     */
    void update(SysRoleExt role);

    /**
     * 删除
     * @param idList
     */
    void delete(Long deleteUserId, List<Long> idList);
}